| 4D Pack v13.2AP Get picture type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D Pack v13.2
 AP Get picture type 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AP Get picture type ( storedPicture ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| storedPicture | BLOB |   | Picture stored as a BLOB | |||||
| Function result | Longint |   | Type of the picture | |||||
Compatibility Note: This command is now obsolete; it is kept only for compatibility reasons and will be removed in future versions of the plug-in. It is strongly recommended to use the 4D commands of the "Pictures" them
AP Get picture type returns the type of the image stored in the BLOB storedPicture:
| -1 | Unknown type | 
| 0 | 'PICT' picture | 
| 1 | QuickTime compressed 'PICT' picture | 
| 2 | JPEG picture | 
| 3 | WMF picture | 
| 4 | EMF picture | 
| 5 | BMP picture | 
| 6 | GIF picture | 
This example stores a picture in a BLOB and then stores its type in $type.
 DOCUMENT TO BLOB($thefile;$theblob)
 $type:=AP Get picture type($theblob)
	Product:  4D Pack
	Theme:  4D_Pack : Utilities
	Number:  
        61962
        
        
        
	
        
         
        
	Created:  4D Pack 6.0.5